package cn.zyq.ykb.controller.h5.user;

import org.springframework.security.access.prepost.PreAuthorize;
import cn.zyq.ykb.system.ry.util.poi.ExcelUtil;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.annotation.Log;
import cn.zyq.ykb.system.ry.enums.BusinessType;
import cn.zyq.ykb.beans.user.UserCash;
import cn.zyq.ykb.service.user.UserCashService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import cn.zyq.ykb.system.common.BaseController;
import cn.zyq.ykb.system.common.PageParam;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 用户-提现记录Controller
 *
 * @author SystemAuth
 * @date 2023-05-23
 */

@RestController(value = "H5UserCashController")
@RequestMapping("/api/userCash")
@Api(tags = "用户-提现记录接口")
public class UserCashController extends BaseController {

    @Autowired
    private UserCashService userCashService;

    /**
     * 查询用户-提现记录列表
     */
    @ApiOperation(value = "列表", response = UserCash.class)
    @PostMapping("/list")
    public Object list(@RequestBody PageParam pageParam) {
        return this.userCashService.selectUserCashList(pageParam);
    }

}
